8bd659dfd55aa0445c9b08e88bba49b79f780138,plugins/com.google.eclipse.mechanic/src/com/google/eclipse/mechanic/ReconcilingPreferencesTask.java,ReconcilingPreferencesTask,initReconcilers,#,45

Before Change


    BufferedReader reader = null;
    
    try {
      reader = new BufferedReader(new InputStreamReader(taskRef.newInputStream()));

      for (String line = reader.readLine(); line != null;
          line = reader.readLine()) {

After Change


    // If it's good enough for Eclipse to use the Properties object to read preference files,
    // then it's good enough for us.
    Properties properties = new Properties();
    properties.load(taskRef.newInputStream());
    for (Entry<Object, Object> entry : properties.entrySet()) {
      String id = (String) entry.getKey();
      // Ignore entries like "file_export_version=3.0"